<script id="silu-add-box" type="text/html">
	<style>td a{margin-left:5px}.condition-input{width:50px;display:inline-block}#popup_container{top:10%!important}.s-model span{width:100px;display:inline-block;margin-top:5px}.indexUnit{margin-left:5px}.k_box{margin-top:-20px;border-bottom:1px solid #DDD;padding:10px 0}input{vertical-align:middle!important}.thinkBox{margin-bottom:0}</style>
	<div class="widget" id="index-add-table" style="width:950px;margin:10px;">
		
		<div style="max-height:180px; overflow-y:scroll;margin-bottom:20px;">
			<table class="metrotable datatable thinkBox">
				<thead>
					<tr>
						<th>维度</th>
						<th>条件</th>
						<th>比例</th>
						<th>数据维度</th>
						<th>参考数值</th>
						<th></th>
					</tr>
				</thead>
				<tbody class="dimension-box" data-area="first">
					<tr class="index-for-con" data-type="first">
						<td class="index-td">
							<select name="index" class="index-name">
								<option value=""></option>
								<% for(var i in default_index){ %>
								<option value="<%= default_index[i].name%>"><%= default_index[i].str%></option>
								<% } %>
							</select>
						</td>
						<td>
							<select name="conditions" class="conditions">
								<% for(var i in default_conditions){ %>
									<option value="<%= default_conditions[i].value%>"><%= default_conditions[i].str%></option>
								<% } %>
							</select>
						</td>
						<td>
							<input type="text" class="condition-input click-min" name="value" class="value" value="100">&nbsp;&#37;
						</td>
						<td>
							<% if(expandParams.siluType == 'custom') { %>
								<span style="margin-left:10px;"><input type="radio" name="depth" class="depth" value="3" checked>宝贝</span>
							<% } else { %>
								<span style="margin-left:10px;"><input type="radio" name="depth" class="depth" value="4" checked>自选</span>
							<% } %>
						</td>
						<td>
							<span><input type="radio" name="srouceType" class="srouceType" value="1" checked>均值<span class="u-1"></span></span>
							<span style="margin-left:10px;"><input type="radio" name="srouceType" class="srouceType" value="2">最大值<span class="u-2"></span></span>
							<!--<span style="margin-left:10px;" class="category_190"><input type="radio" name="srouceType" class="srouceType" value="4">行业均值<span class="u-4"></span></span>-->
							<span style="margin-left:10px;"><input type="radio" name="srouceType" class="srouceType" value="3">自定义
							<input type="text" data-validate="true" class="condition-input click-min srouceValue" style="margin-left:5px;" name="srouceValue"><span class="indexUnit"></span></span>
						</td>
						<td>
							<!--<div>-->
								<button class="stdbtn add-index" type="button" data-type="and">增加指标 (并且)</button>
								<!--<button class="stdbtn add-index" type="button" data-type="or">增加指标 (或)</button>
							</div>-->
							<!--<div style="margin-top:10px;">
								<button class="stdbtn add-index" type="button" data-type="areaand">增加域 (并且)</button>-->
								<button class="stdbtn add-index" type="button" data-type="areaor">增加域 (或)</button>
							<!--</div>-->
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="k_box" style="margin-bottom:10px;height:50px;">
			<h4>数据来源</h4>
			<div class="s-model">
				<span>计算机： <input type="radio" name="data_source" value="1" checked></span>
				<span>无线： <input type="radio" name="data_source" value="0"></span>
			</div>
		</div>
		<div class="k_box" style="margin-bottom:10px;height:50px;">
			<h4>参考数值时效</h4>
			<div class="s-model">
				<span style="float:left">
					<select name="effectivedate" style="height:22px;">
						<option value="1">昨天</option>
						<option value="3">最近三天</option>
						<option value="7" selected>最近一周</option>
						<option value="15">最近半个月</option>
						<option value="30">最近一个月</option>
						<option value="90">最近三个月</option>
						<option value="0">自定义</option>
					</select>
				</span>
				<span id="cusTime" style="display:none;">
					<strong style="margin-right: 5px;">最近</strong><input type="text" class="condition-input click-min cusEffectivedate" name="cusEffectivedate"><strong style="margin-left: 5px;">天</strong>
				</span>
			</div>
		</div>
		<div class="k_box priceModel" style="margin-top:-10px;">
			<input type="hidden" name="priceModel" value="0"> 
			<h4>调价模式</h4>
			<span style="width:auto;">开启调价模式<input type="checkbox" style="vertical-align: middle; " class="priceModelStart" checked></span>
			<div class="s-model">
				<span>按百分比调价</span>
				<span>
					<input type="radio" name="addbyfix" class="addbyfix" value="1">降价
					<input type="radio" name="addbyfix" class="addbyfix" value="2">提价
				</span>
				<span style="width:110px;">
					<input type="text" class="condition-input click-min addbyfixVal" name="addbyfixVal">&nbsp;&#37; 原价，
				</span>
				<span style="width:200px;">
					<span id="s-model-value-set-addbyfixVal" style="width:auto;">最高不得多于</span><input type="text" class="condition-input click-min addbyfixValMax" name="addbyfixValMax" style="margin-left:5px;">&nbsp;元
				</span>
			</div>
			<div class="s-model">
				<span>原基础上调价</span>
				<span>
					<input type="radio" name="addpricewithratio" class="addpricewithratio" value="1">降价
					<input type="radio" name="addpricewithratio" class="addpricewithratio" value="2">提价
				</span>
				<span style="width:auto;">
					<input type="text" class="condition-input click-min addpricewithratioVal" name="addpricewithratioVal">&nbsp;元，
				</span>
				<span style="width:200px;">
					<span id="s-model-value-set-addpricewithratioVal" style="width:auto;">最高不得多于</span><input type="text" class="condition-input click-min addpricewithratioValMax" name="addpricewithratioValMax" style="margin-left:5px;">&nbsp;元
				</span>
			</div>
			<div class="s-model">
				<span>统一出价</span>
				<span>
					<input type="text" class="condition-input click-min setbyfixVal" name="setbyfixVal">&nbsp;元
				</span>
			</div>
		</div>
		<div class="k_box matchscope" style="margin-top:0px;">
			<h4>匹配模式</h4>
			<div class="s-model-matchscopeModel">
				<span style="width:auto;">开启匹配模式修改<input type="checkbox" style="vertical-align: middle; " class="matchscopeModel"></span>
				<span style="width:200px;margin-left:10px;">
					<input type="radio" name="matchscope" value="1" disabled="true" class="fuzzy">广泛匹配
					<input type="radio" name="matchscope" value="3" disabled="true" class="fix">精确匹配
				</span>
			</div>
		</div>
		<div class="k_box delete" style="margin-top:0px;">
			<h4>删除</h4>
			<div class="s-model-delete">
				<span style="width:auto;">删除符合条件的关键词<input type="checkbox" id="delete" name="delete" class="deleteModel" style="vertical-align: middle;"></span>
			</div>
		</div>

		<div class="k_box matchscope" style="margin-top:0px;margin-bottom:10px;">
			<h4>思路名称</h4>
			<div class="s-model-title">
				<input type="text" class="thinkingName" value="" name="thinkingName">
			</div>
		</div>
		
		<div stype="margin-top:10px;">
			<button class="stdbtn save-btn">保存思路</button>
			<span class="loading" style="display:none;">正在跳转……</span>
		</div>
	</div>
</script>

<script id="silu-add-box-edit" type="text/html">
	<style>td a{margin-left:5px}.condition-input{width:50px;display:inline-block}#popup_container{top:10%!important}.s-model span{width:100px;display:inline-block;margin-top:5px}.indexUnit{margin-left:5px}.k_box{margin-top:-20px;border-bottom:1px solid #DDD;padding:10px 0}input{vertical-align:middle!important}.thinkBox{margin-bottom:0}</style>
	<div class="widget" id="index-add-table" style="width:950px;margin:10px;">
		<div style="max-height:150px; overflow-y:scroll;margin-bottom:20px;">
			<table class="metrotable datatable thinkBox">
				<thead>
					<tr>
						<th>维度</th>
						<th>条件</th>
						<th>比例</th>
						<th>数据维度</th>
						<th>参考数值</th>
						<th></th>
					</tr>
				</thead>
				<% for (var y in data.content.indexs) { %>
				<% if(y != 0) { %>
				<tbody class="index-or">
					<tr><td colspan="6">或</td></tr>
				</tbody>
				<% } %>
				<tbody class="dimension-box" data-area="areaor">
					<% for (var index_key in data.content.indexs[y]) { %>
					<tr class="index-for-con" <% if(y == 0) { %>data-type="first"<% } else { if(data.content.indexs[y][index_key].intdex_method) { %>data-type="<%= data.content.indexs[y][index_key].intdex_method%>"<% } else { %>and<% } }%>>
						<td class="index-td">
							<select name="index_<%= data.id%><%= y%><%= index_key%>" class="index-name">
								<option value=""></option>
								<% for(var i in default_index){ %>
								<option value="<%= default_index[i].name%>" <% if(data.content.indexs[y][index_key].intdex_name == default_index[i].name){ %>selected<% } %>><%= default_index[i].str%></option>
								<% } %>
							</select>
						</td>
						<td>
							<select name="conditions_<%= data.id%><%= y%><%= index_key%>" class="conditions">
								<% for(var i in default_conditions){ %>
									<option value="<%= default_conditions[i].value%>" <% if(data.content.indexs[y][index_key].intdex_condition == default_conditions[i].str){ %>selected<% } %>><%= default_conditions[i].str%></option>
								<% } %>
							</select>
						</td>
						<td>
							<input type="text" class="condition-input click-min" name="value" class="value" value="<%= data.content.indexs[y][index_key].intdex_value%>">&nbsp;&#37;
						</td>
						<td>
							<% if(data.type == 3) { %>
								<span style="margin-left:10px;"><input type="radio" name="depth__<%= data.id%><%= y%><%= index_key%>" class="depth" value="3" checked>宝贝</span>
							<% } else { %>
								<span style="margin-left:10px;"><input type="radio" name="depth__<%= data.id%><%= y%><%= index_key%>" class="depth" value="4" checked>自选</span>
							<% } %>
						</td>
						<td>
							<span><input type="radio" name="srouceType_<%= data.id%><%= y%><%= index_key%>" class="srouceType" value="1" <% if(data.content.indexs[y][index_key].intdex_srouceType == 1){ %>checked<% } %>>均值<span class="u-1"></span></span>
							<span style="margin-left:10px;"><input type="radio" name="srouceType_<%= data.id%><%= y%><%= index_key%>" class="srouceType" value="2" <% if(data.content.indexs[y][index_key].intdex_srouceType == 2){ %>checked<% } %>>最大值<span class="u-2"></span></span>
							<!--<span style="margin-left:10px;" class="category_190"><input type="radio" name="srouceType_<%= data.id%><%= y%><%= index_key%>" class="srouceType" value="4" <% if(data.content.indexs[y][index_key].intdex_srouceType == 4){ %>checked<% } %>>行业均值<span class="u-4"></span></span>-->
							<span style="margin-left:10px;"><input type="radio" name="srouceType_<%= data.id%><%= y%><%= index_key%>" class="srouceType" value="3" <% if(data.content.indexs[y][index_key].intdex_srouceType == 3){ %>checked<% } %>>自定义
							<input type="text" data-validate="true" class="condition-input click-min srouceValue" style="margin-left:5px;" name="srouceValue" <% if(data.content.indexs[y][index_key].intdex_srouceType == 3){ %>value="<%= data.content.indexs[y][index_key].intdex_srouceValue%>"<% } %>><span class="indexUnit"><% if(data.content.indexs[y][index_key].intdex_srouceType == 3 && data.content.indexs[y][index_key].intdex_name in indexUnit){ %><%= indexUnit[data.content.indexs[y][index_key].intdex_name]%><% } %></span></span>
						</td>
						<td>
							<% if(y == 0 && index_key == 0) { %>
							<button class="stdbtn add-index" type="button" data-type="and">增加指标 (并且)</button>
							<button class="stdbtn add-index" type="button" data-type="areaor">增加域 (或)</button>
							<% } else if(y != 0 && index_key == 0) { %>
							<button class="stdbtn add-index" type="button" data-type="and">增加指标 (并且)</button>
							<button class="stdbtn delete-index-or" type="button">删除域 (或)</button>
							<% } else { %>
							<button class="stdbtn delete-index" type="button">删除指标</button>				
							<% } %>
						</td>
					</tr>
					<% } %>
				</tbody>
				<% } %>
			</table>
		</div>
		<div class="k_box" style="margin-bottom:10px;height:50px;">
			<h4>数据来源</h4>
			<div class="s-model">
				<span>计算机： <input type="radio" name="data_source" value="1" <% if(data.data_source === 1) { %>checked<% } %>></span>
				<span>无线： <input type="radio" name="data_source" value="0" <% if(data.data_source === 0) { %>checked<% } %>></span>
			</div>
		</div>
		<div class="k_box" style="margin-bottom:10px;height:50px;">
			<h4>参考数值时效</h4>
			<div class="s-model">
				<span style="float:left">
					<select name="effectivedate" style="height:22px;">
						<option value="1" <% if(data.content.date == 1) { %>selected<% } %>>昨天</option>
						<option value="3" <% if(data.content.date == 3) { %>selected<% } %>>最近三天</option>
						<option value="7" <% if(data.content.date == 7) { %>selected<% } %>>最近一周</option>
						<option value="15" <% if(data.content.date == 15) { %>selected<% } %>>最近半个月</option>
						<option value="30" <% if(data.content.date == 30) { %>selected<% } %>>最近一个月</option>
						<option value="90" <% if(data.content.date == 90) { %>selected<% } %>>最近三个月</option>
						<option value="0" <% if(data.content.date != 1 && data.content.date != 3 && data.content.date != 7 && data.content.date != 15 && data.content.date != 30 && data.content.date != 90) { %>selected<% } %>>自定义</option>
					</select>
				</span>
				<% if(data.content.date != 1 && data.content.date != 3 && data.content.date != 7 && data.content.date != 15 && data.content.date != 30 && data.content.date != 90) { %>
				<span id="cusTime">
					<strong style="margin-right: 5px;">最近</strong><input type="text" class="condition-input click-min cusEffectivedate" name="cusEffectivedate" value="<%= data.content.date %>"><strong style="margin-left: 5px;">天</strong>
				</span>
				<% } else { %>
				<span id="cusTime" style="display:none;">
					<input type="text" class="condition-input click-min cusEffectivedate" name="cusEffectivedate"><strong style="margin-left: 5px;">天</strong>
				</span>
				<% } %>
			</div>
		</div>
		<div class="k_box priceModel" style="margin-top:-10px;">
			<input type="hidden" name="priceModel" value="0"> 
			<h4>调价模式</h4>
			<span style="width:auto;">开启调价模式<input type="checkbox" style="vertical-align: middle; " class="priceModelStart" checked></span>
			<div class="s-model" id="s-model-1">
				<span>按百分比调价</span>
				<span>
					<input type="radio" name="addbyfix" class="addbyfix" value="1">降价
					<input type="radio" name="addbyfix" class="addbyfix" value="2">提价
				</span>
				<span style="width:110px;">
					<input type="text" class="condition-input click-min addbyfixVal" name="addbyfixVal">&nbsp;&#37; 原价，
				</span>
				<span style="width:200px;">
					<span id="s-model-value-set-addbyfixVal" style="width:auto;">最高不得多于</span><input type="text" class="condition-input click-min addbyfixValMax" name="addbyfixValMax" style="margin-left:5px;">&nbsp;元
				</span>
			</div>
			<div class="s-model" id="s-model-2">
				<span>原基础上调价</span>
				<span>
					<input type="radio" name="addpricewithratio" class="addpricewithratio" value="1">降价
					<input type="radio" name="addpricewithratio" class="addpricewithratio" value="2">提价
				</span>
				<span style="width:auto;">
					<input type="text" class="condition-input click-min addpricewithratioVal" name="addpricewithratioVal">&nbsp;元，
				</span>
				<span style="width:200px;">
					<span id="s-model-value-set-addpricewithratioVal" style="width:auto;">最高不得多于</span><input type="text" class="condition-input click-min addpricewithratioValMax" name="addpricewithratioValMax" style="margin-left:5px;">&nbsp;元
				</span>
			</div>
			<div class="s-model" id="s-model-3">
				<span>统一出价</span>
				<span>
					<input type="text" class="condition-input click-min setbyfixVal" name="setbyfixVal">&nbsp;元
				</span>
			</div>
		</div>
		<div class="k_box matchscope" style="margin-top:0px;">
			<h4>匹配模式</h4>
			<% if(data.content.matchscopeModel.status == 1 ) { %>
			<div class="s-model-matchscopeModel">
				<span style="width:auto;">开启匹配模式修改<input type="checkbox" style="vertical-align: middle; " class="matchscopeModel" checked></span>
				<span style="width:200px;margin-left:10px;">
					<input type="radio" name="matchscope" value="1" <% if(data.content.matchscopeModel.value == 1 ) { %>checked<% } %> class="fuzzy">广泛匹配
					<input type="radio" name="matchscope" value="3" <% if(data.content.matchscopeModel.value == 3 ) { %>checked<% } %> class="fix">精确匹配
				</span>
			</div>
			<% } else { %>
			<div class="s-model-matchscopeModel">
				<span style="width:auto;">开启匹配模式修改<input type="checkbox" style="vertical-align: middle; " class="matchscopeModel"></span>
				<span style="width:200px;margin-left:10px;">
					<input type="radio" name="matchscope" value="1" disabled="true" class="fuzzy">广泛匹配
					<input type="radio" name="matchscope" value="3" disabled="true" class="fix">精确匹配
				</span>
			</div>
			<% } %>
		</div>
		<div class="k_box delete" style="margin-top:0px;">
			<h4>删除</h4>
			<div class="s-model-delete">
				<span style="width:auto;">删除符合条件的关键词<input type="checkbox" id="delete" name="delete" class="deleteModel" style="vertical-align: middle;"></span>
			</div>
		</div>

		<div class="k_box matchscope" style="margin-top:0px;margin-bottom:10px;">
			<h4>思路名称</h4>
			<div class="s-model-title">
				<input type="text" class="thinkingName" value="<%= data.title%>" name="thinkingName">
			</div>
		</div>
		
		<div stype="margin-top:10px;">
			<button class="stdbtn save-btn">保存思路</button>
			<span class="loading" style="display:none;">正在跳转……</span>
		</div>
	</div>
</script>

<script id="silu-add-index" type="text/html">
	<tr class="index-for-con" data-type="<%= type%>">
		<td class="index-td">
			<select name="index_<%= time%>" class="index-name">
				<option value=""></option>
				<% for(var i in default_index){ %>
				<option value="<%= default_index[i].name%>"><%= default_index[i].str%></option>
				<% } %>
			</select>
		</td>
		<td>
			<select name="conditions_<%= time%>" class="conditions">
				<% for(var i in default_conditions){ %>
					<option value="<%= default_conditions[i].value%>"><%= default_conditions[i].str%></option>
				<% } %>
			</select>
		</td>
		<td>
			<input type="text" class="condition-input click-min" name="value" class="value" value="100">&nbsp;&#37;
		</td>
		<td>
			<% if(expandParams.siluType == 'custom') { %>
				<span style="margin-left:10px;"><input type="radio" name="depth_<%= time%>" class="depth" value="3" checked>宝贝</span>
			<% } else { %>
				<span style="margin-left:10px;"><input type="radio" name="depth_<%= time%>" class="depth" value="4" checked>自选</span>
			<% } %>
		</td>
		<td>
			<span><input type="radio" name="srouceType_<%= time%>" class="srouceType" value="1" checked>均值<span class="u-1"></span></span>
			<span style="margin-left:10px;"><input type="radio" name="srouceType_<%= time%>" class="srouceType" value="2">最大值<span class="u-2"></span></span>
			<!--<span style="margin-left:10px;" class="category_190"><input type="radio" name="srouceType_<%= time%>" class="srouceType" value="4">行业均值<span class="u-4"></span></span>-->
			<span style="margin-left:10px;"><input type="radio" name="srouceType_<%= time%>" class="srouceType" value="3">自定义
			<input type="text" data-validate="true" class="condition-input click-min" style="margin-left:5px;ime-mode:disabled;" name="srouceValue" class="srouceValue"><span class="indexUnit"></span></span>
		</td>
		<td>
			<button class="stdbtn delete-index">删除指标</button>
			<span><%= type%></span>
		</td>
	</tr>
</script>

<script id="silu-result-box" type="text/html">
	<style>
		.siluResult-box {
			padding:10px;
		}
		.datatable thead th.sorting_asc, .datatable thead td.sorting_asc { background-image: url(/Img/sort_asc.png); background-repeat: no-repeat; background-position: left center; }
		.datatable thead th.sorting_desc, .datatable thead td.sorting_desc  { background-image: url(/Img/sort_desc.png); background-repeat: no-repeat; background-position: left center; }
		.object-info, .object-info tr, .object-info tr td {
			border:1px solid #d1d1d1;
		}

	</style>
	<div class="siluResult-box">
		<table class="object-info">
			<tr>
				<td style="padding: 10px;text-align:center;">优化对象</td>
				<td>
					<div class="silu-obiect">

					</div>
				</td>
			</tr>
			<tr>
				<td style="padding: 10px;text-align:center;">思路条件及优化动作</td>
				<td>
					<div class="silu-filters"></div>
				</td>
			</tr>
		</table>
		<br clear="all">
		<div class="btn-box" style="display:inline-block;float:left; margin-bottom:10px;;">
			<button class="stdbtn executeAction" data-id="<%= siluId%>">执行思路</button>
		</div>
		<div style="float:right;">
			<div class="paging-box paging-full" id="page_html" style="margin-right:20px;">
				<!--<ul class="items">
					
				</ul>-->
			</div>
		</div>
		<table cellpadding="0" cellspacing="0" border="0" class="metrotable datatable">
			<thead id="">
				<tr>
					<th></th>
					<th width="10%" class="sorting" data-sort="modifiedStatus">关键词(<span id="resCount">?</span>个)</th>
					<th width="10%">推广单元名称</th>
					<th class="sorting sorting_desc" data-sort="impressions">展现量</th>
					<th class="sorting" data-sort="click">点击量</th>
					<th class="sorting" data-sort="ctr">点击率</th>
					<th class="sorting" data-sort="cpc">平均点击花费</th>
					<th class="sorting" data-sort="cvr">点击转化率</th>
					<th class="sorting" data-sort="avgpos">宝贝排名</th>
					<th class="sorting" data-sort="qscore">计算机质量得分</th>
					<th class="sorting" data-sort="wireless_qscore">移动质量得分</th>
					<th class="sorting" data-sort="cost">总花费</th>
					<th class="sorting" data-sort="sales">总成交金额</th>
					<th class="sorting" data-sort="total_pay_count">总成交笔数</th>
					<th class="sorting" data-sort="roi">投入产出比</th>
					<th class="sorting" data-sort="fav_count">总收藏数</th>
					<th class="sorting" data-sort="fav_count_rate">收藏率</th>
					<th class="sorting" data-sort="cart_total">购物车数</th>
					<th class="sorting" data-sort="cart_total_rate">购物车率</th>
					<th class="sorting" data-sort="max_price">调整后出价</th>
				</tr>
			</thead>
			<tbody id="siluResult-list-tr">
				<tr>
					<td colspan="18" class="center">数据正在加载中……</td>
				</tr>
			</tbody>
		</table>
	</div>
</script>

<script id="siluResult-list-tr" type="text/html">
	<% if(list.total_items > 0) { for (var i = 0; i < list.total_items; i++) { %>
	<tr data-campaign_id="<%= list.items[i].campaign_id%>" data-adgroup_id="<%= list.items[i].adgroup_id%>" data-keyword_id="<%= list.items[i].keyword_id%>">
		<td>
			<input value="<%= list.items[i].keyword_id%>" id="k_check_<%= list.items[i].keyword_id%>" name="keyword_id" type="checkbox" <% if(list.items[i].unSiluResult == false) { %>class="shiftcheckbox keyword_id checkit" checked<% } else { %>class="keyword_id shiftcheckbox"<% } %>>
		</td>
		<td class="center num word <% if(list.items[i].executed) { %>red<% } %>"><% if(list.items[i].new_matchscope == 1) { %>[<% } else if(list.items[i].new_matchscope == 2) { %><%== '"'%><% } %><%= list.items[i].word %><% if(list.items[i].new_matchscope == 1) { %>]<% } else if(list.items[i].new_matchscope == 2) { %><%== '"'%><% } %></td>
		<td>
			<div class="imgtxt60">
				<div class="photo">
					<a class="img60" href="http://item.taobao.com/item.htm?id=<%= list.items[i].num_iid%>" target="_blank">
						<img src="<%= list.items[i].img_url%>" alt="<%= list.items[i].a_title%>">
					</a>
				</div>
				<p class="title">
					<a href="http://item.taobao.com/item.htm?id=<%= list.items[i].num_iid%>" target="_blank"><%= list.items[i].a_title%></a>
				</p>
			</div>
		</td>
		<td class="center num"><%= list.items[i].impressions%></td>
		<td class="center num"><%= list.items[i].click%></td>
		<td class="center num"><%= list.items[i].ctr%>%</td>
		<td class="center num"><%= list.items[i].cpc%></td>
		<td class="center num"><%= list.items[i].cvr%>%</td>
		<td class="center num"><%= list.items[i].avgpos%></td>
		<td class="center num"><%= list.items[i].qscore%></td>
		<td class="center num"><%= (list.items[i].wireless_qscore > 0 ) ? list.items[i].wireless_qscore : "--"%></td>
		<td class="center num">￥<%= list.items[i].cost%></td>
		<td class="center num">￥<%= list.items[i].sales%></td>
		<td class="center num"><%= list.items[i].total_pay_count%></td>
		<td class="center num"><%= list.items[i].roi%></td>
		<td class="center num"><%= list.items[i].fav_count%></td>
		<td class="center num"><%= list.items[i].fav_count_rate%>%</td>
		<td class="center num"><%= list.items[i].cart_total%></td>
		<td class="center num"><%= list.items[i].cart_total_rate%>%</td>
		<td class="center num"><%== list.items[i].new_price ? "<span class=\"red\">￥" + list.items[i].new_price + "<\/span><br>" : ""%>(原价：￥<%= list.items[i].max_price%>)</td>
	</tr>
	<% } } else { %>
	<tr>
		<td class="center green" colspan="19">无关键词数据</td>
	</tr>
	<% } %> 
</script>

<script id="dimension-box" type="text/html">
	<tbody class="index-or">
		<tr><td colspan="6"><% if(type == 'areaor') { %>或<% } else { %>并且<% } %></td></tr>
	</tbody>
	<tbody class="dimension-box" data-area="<%= type%>">
		<tr class="index-for-con" data-type="and">
			<td class="index-td">
				<select name="index_<%= time%>" class="index-name">
					<option value=""></option>
					<% for(var i in default_index){ %>
					<option value="<%= default_index[i].name%>"><%= default_index[i].str%></option>
					<% } %>
				</select>
			</td>
			<td>
				<select name="conditions_<%= time%>" class="conditions">
					<% for(var i in default_conditions){ %>
						<option value="<%= default_conditions[i].value%>"><%= default_conditions[i].str%></option>
					<% } %>
				</select>
			</td>
			<td>
				<input type="text" class="condition-input click-min" name="value" class="value" value="100">&nbsp;&#37;
			</td>
			<td>
				<% if(expandParams.siluType == 'custom') { %>
					<span style="margin-left:10px;"><input type="radio" name="depth_<%= time%>" class="depth" value="3" checked>宝贝</span>
				<% } else { %>
					<span style="margin-left:10px;"><input type="radio" name="depth_<%= time%>" class="depth" value="4" checked>自选</span>
				<% } %>
			</td>
			<td>
				<span><input type="radio" name="srouceType_<%= time%>" class="srouceType" value="1" checked>均值<span class="u-1"></span></span>
				<span style="margin-left:10px;"><input type="radio" name="srouceType_<%= time%>" class="srouceType" value="2">最大值<span class="u-2"></span></span>
				<!--<span style="margin-left:10px;" class="category_190"><input type="radio" name="srouceType_<%= time%>" class="srouceType" value="4">行业均值<span class="u-4"></span></span>-->
				<span style="margin-left:10px;"><input type="radio" name="srouceType_<%= time%>" class="srouceType" value="3">自定义
				<input type="text" data-validate="true" class="condition-input click-min" style="margin-left:5px;ime-mode:disabled;" name="srouceValue" class="srouceValue"><span class="indexUnit"></span></span>
			</td>
			<td>
				<!--<div>-->
					<button class="stdbtn add-index" type="button" data-type="and">增加指标 (并且)</button>
					<!--<button class="stdbtn add-index" type="button" data-type="or">增加指标 (或)</button>-->
				<!--</div>
				<div style="margin-top:10px;">-->
					<button class="stdbtn delete-index-or" type="button">删除域 (<% if(type == 'areaor') { %>或<% } else { %>并且<% } %>)</button>
				<!--</div>-->
			</td>
		</tr>
	</tbody>
</script>